import Hook from "./自定义hook"
const Seat = props => {
    let [count,tool]=Hook(10)
    return (
        <fieldset>
            <legend>基础组件</legend>
            <h1>count;{count}</h1>
            <button onClick={tool.add}>+</button>
            &nbsp;
            &nbsp;
            <button onClick={tool.minus}>-</button>
            &nbsp;
            &nbsp;
            <button onClick={tool.muilt}>×</button>
            &nbsp;
            &nbsp;
            <button onClick={tool.divide}>÷</button>
        </fieldset>
    )

}
export default Seat